namespace Maple.Branch.IdentityServer.Entities
{
    using System;
    using Volo.Abp.Domain.Entities;

    public class PersistedGrant : AggregateRoot<Guid>
    {
        public string Key { get; set; }

        public string Type { get; set; }

        public string SubjectId { get; set; }

        public string ClientId { get; set; }

        public DateTime CreationTime { get; set; }

        public DateTime? Expiration { get; set; }

        public string Data { get; set; }

        protected PersistedGrant()
        {
        }

        public PersistedGrant(Guid id)
        {
            Id = id;
        }
    }
}
